﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using HardwareLibrary.XMLLibrary;

namespace MyExcelAddIn2003.Weight
{
    public partial class SetForm : Form
    {
        public SetForm()
        {
            InitializeComponent();
        }

        private void btn_ResetDVR_Click(object sender, EventArgs e)
        {
            this.Close();
            WeightFrm.GetInstance.reSetAllDVR();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            XMLOp xmlop = new XMLOp();
            System.Collections.Hashtable hashtable = new System.Collections.Hashtable();
            hashtable.Add("DVR0","0");
            hashtable.Add("DVR1","1");
            xmlop.CreatePicXML("c:\\test.xml", hashtable, "1900-01-01");
            hashtable.Clear();
            //EQ2008Helper.OpenLED(1);
        }

        private void button2_Click(object sender, EventArgs e)
        {
            //EQ2008Helper.CloseLED(1);
            XMLOp xmlop = new XMLOp();
            MessageBox.Show(xmlop.ReadPicXmlTime("C:\\test.xml", "DVR0"));
        }

    }
}
